/**
 * @filename:WorkSettingService Jan 8, 2024
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.service;
import com.vtuzx.core.bean.dto.VtuzxMap;
import com.wonder.app.domain.WorkSetting;
import com.wonder.app.request.WorkSettingRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;
/**   
 * @Description:TODO(工单设置服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface WorkSettingService extends IService<WorkSetting> {

    
    /**
     * 验证工单设置信息
     * 
     * @param workSetting
     * @param type
     * @return 结果
     */
    public String validate(WorkSetting workSetting,String type);   
   
	
	 /**
	 * Description:工单设置分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<WorkSetting>   //分页记录
	 */
    public IPage<WorkSetting> selectList(WorkSettingRequest request, Page<WorkSetting> page);

	public boolean saveworkorder(String userName, Map<String, Object> header, List<Map<String, Object>> datavsList, List<Map<String, Object>> datatestList);

	public boolean updateworkorder(String userName, Map<String, Object> header, List<Map<String, Object>> datavsList,List<Map<String ,Object>> datatestList);


	/**
	 * 获取工单详情
	 * @param id
	 * @return
	 */
    VtuzxMap getDetail(Long id);

	/**
	 *发布工单信息到mqtt
	 * @param workSetting
	 */
	void sendWorkMessage(WorkSetting workSetting);
}
